package com.scpii.api.persistence.content;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.scpii.api.domain.content.Activities;

public interface ActivitiesMapper {
	int deleteByPrimaryKey(Long id);

	int insert(Activities record);

	int insertSelective(Activities record);

	Activities selectByPrimaryKey(Long id);

	int updateByPrimaryKeySelective(Activities record);

	int updateByPrimaryKeyWithBLOBs(Activities record);

	int updateByPrimaryKey(Activities record);

	List<Activities> selectBySelective(Activities record);

	void updateStatusByEndTime();

	/**
	 * @param id
	 * @param strings
	 * @return
	 */
	List<Activities> selectUserActivitiesByUserIdAndActionTypes(
			@Param("userId") Long userId,
			@Param("actionTypes") String[] actionTypes);

}